package com.eflow.engine.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.eflow.engine.mapper.EflowTaskMapper;
import com.eflow.model.domain.EflowTask;
import com.eflow.engine.service.IEflowTaskService;

/**
 * 任务待办Service业务层处理
 *
 * @author eflow
 * @date 2021-02-26
 */
public class EflowTaskServiceImpl extends ServiceImpl<EflowTaskMapper,EflowTask>  implements IEflowTaskService
{


    /**
     * 查询任务待办
     *
     * @param id 任务待办ID
     * @return 任务待办
     */
    @Override
    public EflowTask selectEflowTaskById(Long id)
    {
        return baseMapper.selectEflowTaskById(id);
    }

    /**
     * 查询任务待办列表
     *
     * @param eflowTask 任务待办
     * @return 任务待办
     */
    @Override
    public List<EflowTask> selectEflowTaskList(EflowTask eflowTask)
    {
        return baseMapper.selectEflowTaskList(eflowTask);
    }

    /**
     * 新增任务待办
     *
     * @param eflowTask 任务待办
     * @return 结果
     */
    @Override
    public int insertEflowTask(EflowTask eflowTask)
    {
        return baseMapper.insertEflowTask(eflowTask);
    }

    /**
     * 修改任务待办
     *
     * @param eflowTask 任务待办
     * @return 结果
     */
    @Override
    public int updateEflowTask(EflowTask eflowTask)
    {
        return baseMapper.updateEflowTask(eflowTask);
    }

    /**
     * 批量删除任务待办
     *
     * @param ids 需要删除的任务待办ID
     * @return 结果
     */
    @Override
    public int deleteEflowTaskByIds(Long[] ids)
    {
        return baseMapper.deleteEflowTaskByIds(ids);
    }

    /**
     * 删除任务待办信息
     *
     * @param id 任务待办ID
     * @return 结果
     */
    @Override
    public int deleteEflowTaskById(Long id)
    {
        return baseMapper.deleteEflowTaskById(id);
    }
}
